export const getUserFormatDate = v => {
  // console.log(v)
  if (!v) return '空'
  let d = new Date(v)
  let y = d.getFullYear()
  let m = d.getMonth() + 1
  let date = d.getDay()
  return y + '-' + checkZero(m) + '-' + checkZero(date)
}

export const checkZero = n => {
  return n < 10 ? '0' + n : n
}
